<?php
require_once(dirname(__FILE__)."/constants.php");
//MUSTAFA NEW CONSTANTS FOR GOOGLE OAUTH 2.0
/*
define("GOOG_PRODUCT_NAME", 'calendarsync'); 
define("GOOG_HOST",  "https://www.googleapis.com/oauth2/v1/userinfo?alt=json" ) ;
define("GOOG_SCOPE",  "https://www.googleapis.com/auth/calendar+https://www.googleapis.com/auth/userinfo.email+https://www.googleapis.com/auth/userinfo.profile" ) ;

//api username: mustafa.turab@gmail.com
define("GOOG_CLIENT_ID", '422465046864.apps.googleusercontent.com'); 
define("GOOG_CLIENT_SECRET", 'Dh4Wx-3Dwjy5UVkLTDqOnSwS'); 
define("GOOG_REDIRECT_URL", $webhost.'googleOAuth.php');
define("GOOG_DEV_KEY", "AIzaSyB6FhZIGMUkWL2JH1-MjqRZgxP55isCxKE");
$client_id = GOOG_CLIENT_ID;//"1111111111111.apps.googleusercontent.com"; //your client id
$client_secret = GOOG_CLIENT_SECRET;//"XxxXXxxXXxXXxXxXXXxXXXX"; //your client secret
$redirect_uri = GOOG_REDIRECT_URL;//"https://gsync-mustafaturabali.dotcloud.com/googleOAuthTest.php";//"http://YOUR-SITE.com/YOUR-PATH/";
$scope = GOOG_SCOPE;//"https://GOOGLE-SCOPE-TO-ACCESS"; //google scope to access
$state = "profile"; //optional
$access_type = "offline"; //optional - allows for retrieval of refresh_token for offline access

$loginUrl = sprintf(GOOG_HOST."/auth?scope=%s&state=%s&redirect_uri=%s&response_type=code&client_id=%s&access_type=%s&approval_prompt=force", $scope, $state, $redirect_uri, $client_id, $access_type);
define('GOOG_AUTH_CODE_URL', $loginUrl);
define('GOOG_ACCESS_TOKEN_URL', GOOG_HOST.'/token');
define('GOOG_REFRESH_TOKEN_URL', GOOG_HOST.'/token');
 */
define('DEBUG_LOG_DIR', dirname(__FILE__).'/logs/debug');
define('SYNC_DEBUG_LOG_DIR', dirname(__FILE__).'/logs');
define('ERROR_LOG_DIR', dirname(__FILE__).'/logs/errors');
?>
